package top.tangyh.lamp.care.vo.result;

import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * @author: zqb
 * @date: 2024/7/26 09:22
 */
@Data
public class ExeHandoverMedicineVo {

    /**
     * 组合药名
     */
    private String medicationName;
    /**
     * 预计完成时间
     */
//    private Long planEndTimestamp;

    private String content;

    public ExeHandoverMedicineVo(ExeYaoOutVO exeYaoOutVO) {
        this.medicationName = exeYaoOutVO.getMedicationName();
        if (exeYaoOutVO.getPlanEndTimestamp() != null) {
            this.content = "预计完成时间:"+ DateUtil.formatDateTime(new Date(exeYaoOutVO.getPlanEndTimestamp()));
        }
    }


}
